How to install VirtualBox Guest Additions in a Debian virtual machine
- Open terminal and become root
su
- Update APT cache:
apt-get update
- Install the latest security updates:
apt upgrade
- Install these required packages:
apt install build-essential module-assistant
- Configure your system for building kernel modules:
m-a prepare
- Insert Guest Additions ISO: Expand menu Devices and click on Insert Guest Additions CD image...
- It should mount automatically, but if for any reason it doesn't:
mount /media/cdrom
- Run the following script:
sh /media/cdrom/VBoxLinuxAdditions.run
- Restart the system:
reboot
How to install VirtualBox Guest Additions in a Debian virtual machine